package com.ssms.dao;

import com.ssms.model.Exam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Exam record);

    int insertSelective(Exam record);

    Exam selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Exam record);

    int updateByPrimaryKey(Exam record);

    List<Exam> selectPage(@Param("start") int start, @Param("size") int size, @Param("exam") Exam exam);

    int selectPageCount( @Param("exam") Exam exam);

    int checkExamConflict(Exam exam);

    int checkCourseConflict(Exam exam);

}